<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        div {
            width: 200px;
            height: 200px;
            margin: 100px;
            background-color: red;
        }
    </style>
    <script src="./jquery-1.11.1.js"></script>
    <script src="./jquery.color.js"></script>
</head>

<body>




    <button>改变背景色</button>
    <div></div>
    <script>
        $(function () {
            $('button').on('click', function () {
                // 使用pink色会变透明
                var i = { 'background-color': 'blue', 'width': 400 };
                $('div').animate(i, 2000);
            })
        })
    </script>
</body>

</html>